import { Sys } from "@/api/interface/sysManagement";
import { ResultData } from "@/api/interface/index";
import { BASE } from "@/api/config/servicePort";
import http from "@/api";

/**
 * @name 系统设置模块
 */
// 获取系统设置列表
export const getSysList = (params: any) => {
  return http.get<Sys.ResSysList[]>(BASE + `/system/config/`, params);
};

// 更新系统设置
export const updateSys = params => {
  return http.patch<ResultData>(BASE + `/system/config/modify/`, params);
};
